package com.bnyy.message.bean.chat.message_data;

import com.bnyy.message.enums.MessageType;
import com.google.gson.JsonObject;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Author : 关炳鹏
 * Description :
 * Date : 2022/12/1
 **/
@Table(name = "message_health_weekly")
public class HealthWeeklyMessage extends MessageData {

    public HealthWeeklyMessage(String msgId, JsonObject jsonObject) {
        super(msgId, jsonObject);
        setId(jsonObject.get(ColumnName.ID).getAsInt());
        setUser_id(jsonObject.get(ColumnName.USER_ID).getAsInt());
        setUsername(jsonObject.get(ColumnName.USER_NAME).getAsString());
        setUser_img(jsonObject.get(ColumnName.USER_IMG).getAsString());
        setDoctor_name(jsonObject.get(ColumnName.DOCTOR_NAME).getAsString());
    }

    @Override
    public  MessageType getMessageType() {
        return MessageType.GROUP_CHAT_VERIFICATION;
    }

    public HealthWeeklyMessage() {
    }

    public interface ColumnName {
        String ID = "id";
        String USER_ID = "user_id";
        String USER_NAME = "username";
        String USER_IMG = "user_img";
        String DOCTOR_NAME = "doctor_name";
    }

    @Column(name = ColumnName.ID)
    private int id;
    @Column(name = ColumnName.USER_ID)
    private int user_id;
    @Column(name = ColumnName.USER_NAME)
    private String username;
    @Column(name = ColumnName.USER_IMG)
    private String user_img;
    @Column(name = ColumnName.DOCTOR_NAME)
    private String doctor_name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUser_img() {
        return user_img;
    }

    public void setUser_img(String user_img) {
        this.user_img = user_img;
    }

    public String getDoctor_name() {
        return doctor_name;
    }

    public void setDoctor_name(String doctor_name) {
        this.doctor_name = doctor_name;
    }
}
